$(function() {
	//默认不同意
	$('.price_retail_btn').css("background", "gray");
	$(".price_retail_btn").attr("disabled", "disabled");
    $(".price_retail_btn").css("pointer-events","none");
})

//过滤小数以及负数
function myFunction(v) {
	if(!(/(^[1-9]\d*$)/.test(v.value))) {　　　　　　
		v.value = '';　　　　
	}
	//按钮 disabled
	myFunction1(v);
}

function myFunction1(v){
	
	if(v.value =='') {
		$('.price_retail_btn').css("background", "gray");
		$(".price_retail_btn").attr("disabled", "disabled");
		$(".price_retail_btn").css("pointer-events","none");
	} else {
		$('.price_retail_btn').removeAttr("disabled");
		$(".price_retail_btn").css("background", "#FF682F");
		$(".price_retail_btn").css("pointer-events","auto");
	}
}
